import 'package:flutter/material.dart';
import 'package:flutter_sunmi_uvc_camera_example/demo/index.dart';
import 'package:flutter_sunmi_uvc_camera_example/permission_util.dart';
import 'package:get/get.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  ///申请权限
  await PermissionUtil.request();
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return const GetMaterialApp(
      initialRoute: '/',
      home: DemoPage(),
    );
  }
}
